import web
import def_urls
from config import *

#set debug mode
#web.config.debug = True

app = web.application(def_urls.urls, globals())

def session_hook():
    web.ctx.session = session
	
if __name__ == "__main__": 
	session = web.session.Session(app, store, initializer = session_values)
	app.add_processor(web.loadhook(session_hook))
	app.run()   